package com.myacg.platform.ui.event.move;

import java.awt.Component;
/**
 * 普通直线事件， 若超出距离就停止
 * @author Administrator
 *
 */
public class LineMoveToEvent extends BaseLineMoveToEvent{

	public LineMoveToEvent(Component comp) {
		super(comp);
	}

	@Override
	protected void OutOffByRunBefor() {
		if(movePlugin.getMoveLength()>=length){
			this.moveEngine.pause();//超出距离就停止
		} 
	}

	@Override
	protected void OutOffByRunAfter() {
		// TODO Auto-generated method stub
		
	}

}
